package com.zky;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * 启动类
 */
//声明当前类是spring boot项目的启动类
@SpringBootApplication
//扫描mapper接口
@MapperScan("com.zky.*.mapper")
//扫描监听器所在的包
@ServletComponentScan(value = "com/zky/basic/listener")
public class App {
    public static void main(String[] args) {
        SpringApplication.run(App.class);
    }
}
